import {PowerWsEditor} from "./components/PowerWsEditor"


// var editor = new PowerWsEditor({target:"powernet",editable:true,showGridBackground:true, imageBackground:"/static/img/world.jpg"})
var editor = new PowerWsEditor({target:"powernet",editable:true,showGridBackground:true,url:"ws://" + location.hostname + ":7002/ws/power/10"})
editor.afterLoad = function() {
	console.log("after load" , this)
	window.graph = this.graph
	// this.graph.originAtCenter = false
	// this.graph.zoomToOverview()
}

